CloneInto
TheCloneInto
method copies all properties and values of this storage unit to the specified destination storage unit.
void CloneInto (in ODDraftKey key, in ODStorageUnit destStorageUnit, in ODID scopeID);
key
- The draft key identifying this cloning operation.
destStorageUnit
- A reference to the destination storage unit to which the data is to be copied.
scopeID
- The ID of the frame that defines the scope of this cloning operation.
DISCUSSION
This method is not called by parts. Your part should call its draft'sClone
orWeakClone
method instead of this method.If this storage unit has persistent references to other objects, the
scopeID
parameter determines which of the referenced objects are within the scope of this cloning operation. Typically, thescopeID
parameter is the ID of a frame, and only those objects embedded in that frame are within scope. In the rare case in which thescopeID
parameter iskODIDAll
, all referenced objects are within scope.This method copies this storage unit's data into the specified destination storage unit. If this storage unit has persistent references to other objects, this method clones any persistently referenced objects that are within the scope of this cloning operation. Objects referenced by strong persistent references are strongly cloned by recursive calls to the
Clone
method; objects referenced by weak persistent references are weakly cloned by calls to theWeakClone
method.EXCEPTIONS
kODErrInvalidDraftKey
- The specified draft key is not the draft key for the current cloning transaction.
kODErrZeroRefCount
- This storage unit has a reference count of 0.
SEE ALSO
TheODDraftKey
type (page 902).
TheODID
type (page 899).
TheODDraft::Clone
method (page 162).
TheODDraft::WeakClone
method (page 185).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help